# coding=utf-8
# 全世界最帅的帅哥
from ysgg1_club_comment.utils.base_serializers import BasePaginateSerializer
from flask import g


class SubjectLikedSerializer(BasePaginateSerializer):

    def get_object(self, obj):
        return {
            "id": obj.id,
            "subject_id": obj.subject_id,
            "like_user_id": g.token,
            "status": 1,
            "is_delete": obj.is_delete,
            "subject_name": obj.subject_name
        }